import * as React from 'react'; import { Flex, SelectField, TabsProps } from '@aws-amplify/ui-react'; export interface TabsPropControlsProps extends TabsProps { setSpacing: (value: React.SetStateAction) => void; setJustifyContent: ( value: React.SetStateAction ) => void; setIndicatorPosition: ( value: React.SetStateAction ) => void; } interface TabsPropControlsInterface { (props: TabsPropControlsProps): JSX.Element; } export const TabsPropControls: TabsPropControlsInterface = ({ spacing, setSpacing, justifyContent, setJustifyContent, indicatorPosition, setIndicatorPosition, }) => { return ( setSpacing(event.target.value as TabsProps['spacing']) } > setIndicatorPosition( event.target.value as TabsProps['indicatorPosition'] ) } > setJustifyContent(event.target.value as TabsProps['justifyContent']) } > ); };